package com.guaoran.interview.spring.aop.service;

import org.springframework.stereotype.Service;

/**
 * @author : 孤傲然
 * @description : aop
 * @date :2020/1/2 16:34
 */
@Service
public class AopService {

    public String aopTest(String message){
        System.out.println("aopTest ... " + message);
        return "Hello " + message;
    }
    public String aopThrow(){
        throw new RuntimeException("throw exception");
    }
    public String aopThrow2() throws Exception {
        throw new Exception("throw exception");
    }
}
